
public class Fatorial {

	public static void main(String[] args) {
		int num = 4;
		long total = num;
		--num;
		if (num <= 0){
			total = 1;
		}else{
			for (;num>=1;--num){
			total =  total*num;
			}
		}
		System.out.println(total);
	}

}
